const order = ['demo1', 'demo2', 'demo3']
const url1 = 'https://vue3antdv-7gcma6b228a5b287-1256680780.tcloudbaseapp.com/api/v2/subject_collection/movie_showing/items'
const url2 = 'https://vue3antdv-7gcma6b228a5b287-1256680780.tcloudbaseapp.com/api/v2/subject_collection/tv_hot/items'
const url3 = 'https://vue3antdv-7gcma6b228a5b287-1256680780.tcloudbaseapp.com/api/v2/subject_collection/tv_variety_show/items'

Page({

  onLoad() {
    var that = this
    // console.log(url)
    wx.request({
      url: url1,
      data: {

      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success(result) {
        var res = result.data
        console.log({xx:res})
        that.setData({
          ref: res.ssubject_collection_item
        })
      }
    })

    wx.request({
      url: url2,
      data: {

      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success(result) {
        var res = result.data
        console.log({ccc:res})
        that.setData({
          ret: res.ssubject_collection_item
        })
      }
    })
    wx.request({
      url: url3,
      data: {
      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success(result) {
        var res = result.data
        console.log(res)
        that.setData({
          rec: res.ssubject_collection_item
        })
      }
    })

  }

})